//
//  Defind.h
//  UGOCMagicbox
//
//  Created by xiaoqy on 2019/11/15.
//  Copyright © 2019 UG. All rights reserved.
//

#ifndef Defind_h
#define Defind_h

// URL IMAGE
#define UGIMAGE(str) [UIImage imageNamed:str]
#define UGURL(str) [NSURL URLWithString:str]
//弱引用
#define UG_WEAKSELF __weak typeof(self) weakSelf = self;

// 屏幕宽高
#define KWidth [UIScreen mainScreen].bounds.size.width
#define KHeight [UIScreen mainScreen].bounds.size.height
// 安全边界
#define KSAFE_Bottom [SafeAreaInsets getSafeBottom]
#define KSAFE_Top [SafeAreaInsets getSafeTop]
//根据屏幕宽度计算对应尺寸
#define KAutoAcale(x) x*(KWidth/375)
//常用 间距
#define KPAND_DEF 15 //默认间距
#define KPAND_MID 10 //小间距
#define KPAND_MIN 5 //小间距

// 常用长度限制
#define KPASSWORDLENGTH 16 //密码长度
#define KPASSWORDMINLENGTH 6 //密码长度

// Document文件路径
#define PATHDOCUMENT [NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES) objectAtIndex:0]

// 常用颜色
#define COLOR_23 [UIColor ug_hexString:@"#232323"]
#define COLOR_33 [UIColor ug_hexString:@"#333333"]
#define COLOR_66 [UIColor ug_hexString:@"#666666"]
#define COLOR_99 [UIColor ug_hexString:@"#999999"]
#define COLOR_EE [UIColor ug_hexString:@"#eeeeee"] //线颜色
#define COLOR_F5 [UIColor ug_hexString:@"#F5F5F5"]

#define COLORPRIMARY [UIColor ug_hexString:@"#409eff"]
#define COLORSUCCESS [UIColor ug_hexString:@"#67c23a"]
#define COLORWARNING [UIColor ug_hexString:@"#e6a23c"]
#define COLORDANGER [UIColor ug_hexString:@"#f56c6c"]
#define COLORINFO [UIColor ug_hexString:@"#909399"]
// 常用字体
#define FONT_BSYS24 [UIFont boldSystemFontOfSize:24]
#define FONT_BSYS20 [UIFont boldSystemFontOfSize:20]
#define FONT_BSYS18 [UIFont boldSystemFontOfSize:18]
#define FONT_BSYS16 [UIFont boldSystemFontOfSize:16]
#define FONT_BSYS14 [UIFont boldSystemFontOfSize:14]
#define FONT_BSYS12 [UIFont boldSystemFontOfSize:12]
#define FONT_BSYS10 [UIFont boldSystemFontOfSize:10]

#define FONT_SYS24 [UIFont systemFontOfSize:24]
#define FONT_SYS20 [UIFont systemFontOfSize:20]
#define FONT_SYS18 [UIFont systemFontOfSize:18]
#define FONT_SYS16 [UIFont systemFontOfSize:16]
#define FONT_SYS14 [UIFont systemFontOfSize:14]
#define FONT_SYS12 [UIFont systemFontOfSize:12]
#define FONT_SYS10 [UIFont systemFontOfSize:10]


#define FONT_SYS23 [UIFont systemFontOfSize:23]
#define FONT_SYS21 [UIFont systemFontOfSize:21]
#define FONT_SYS19 [UIFont systemFontOfSize:19]
#define FONT_SYS17 [UIFont systemFontOfSize:17]
#define FONT_SYS15 [UIFont systemFontOfSize:15]
#define FONT_SYS13 [UIFont systemFontOfSize:13]
#define FONT_SYS11 [UIFont systemFontOfSize:11]

///时间倒计时
#define APPTIMEINFORMATION     @"APPTIMEINFORMATION"

#endif /* Defind_h */
